Here you can find the source of sanitize(String text)
public static String sanitize(String text)
//package com.java2s; //License from project: Apache License public class Main { public static String sanitize(String text) { if (text != null) return text.replaceAll("[,|;|\\.|-]", ""); return ""; }/*from w ww .j a v a 2 s . c om*/ }