字符串去掉空格

String s1=s.trim().replaceAll("\\s*", ""); im