Here you can find the source of sanitize(String input)
public static String sanitize(String input)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w.jav a2s . c om * Remove all characters except alphanumerics and space. * * This is a pretty wild thing to do since it clears out tons of usually * useful stuff, like accent marks, punctuation, capitals.. */ public static String sanitize(String input) { return input.replaceAll("[^A-Za-z0-9 ]", " "); } }