code: public static String trim(CharSequence input) {
        if (input == null) {
           return null;
        }
        return StringFunctions.TRIM.apply(input.toString());
     }
docs: Trims a string of unicode whitespace and invisible characters
  
  @param input Input string
  @return Trimmed string or null if input was null