public static String removeAllBlank(String s){ String result = ""; if(null!=s && !"".equals(s)){ result = s.replaceAll("[ *| *| *|//s*]*", ""); } return result; }