Here you can find the source of cleanText(String s)
public static String cleanText(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static String cleanText(String s) { return s.replaceAll("\\W", ""); }/* w w w . ja v a 2 s. com*/ }