String s=str.replace((char)12288," "); s=s.replaceAll("\\s+","");