Here you can find the source of cleanWhitespace(String str)
public static String cleanWhitespace(String str)
//package com.java2s; //License from project: Open Source License public class Main { public static String cleanWhitespace(String str) { if (str != null) { return str.trim().replaceAll("\u00a0", ""); }//from www.j a va 2 s . c o m return null; } }