public static String collapseWhitespace(String str){
  return collapse(str,WHITE_SPACES," ");
}

public static String collapseWhitespace ( String str ) { return collapse ( str , WHITE_SPACES , " " ) ; }
replaces any string of adjacent whitespace characters with the whitespace character " " .
