public static String removeWhiteSpace(String inputString){
  if (WWUtil.isEmpty(inputString)) {
    return inputString;
  }
  return inputString.replaceAll("\\s+","");
}

public static String removeWhiteSpace ( String inputString ) { if ( WWUtil . isEmpty ( inputString ) ) { return inputString ; } return inputString . replaceAll ( "\\s+" , "" ) ; }
eliminates all white space in a specified string . ( applies the regular expression " \ \ s + " . )
