code: public static String singleSpaceString(String value) {
  
      Assert.hasText(value, "String value must contain text");
  
      return trim(concat(value.split("\\s+"), SINGLE_SPACE));
    }
docs: Single spaces the tokens in the specified String value.  A token is defined as any non-whitespace character.
  
  @param value the String value for which the tokens will be single spaced.
  @return a modified String where the tokens in the String value have been single spaced.
  @see #concat(String[], String)