Here you can find the source of normalizeString(String input)
public static String normalizeString(String input)
//package com.java2s; //License from project: Apache License import java.text.Normalizer; public class Main { public static String normalizeString(String input) { return Normalizer.normalize(input, Normalizer.Form.NFD).replaceAll("\\p{M}", "").replaceAll("\\W+", " ") .toLowerCase().trim();//from w w w .j a v a 2 s.com } }