public static String trim(CharSequence input) {
      if (input == null) {
         return null;
      }
      return StringFunctions.TRIM.apply(input.toString());
   }
public static String trim ( CharSequence input ) { if ( input == null ) { return null ; } return StringFunctions . TRIM . apply ( input . toString ( ) ) ; }
Trims a string of unicode whitespace and invisible characters

@param input Input string
@return Trimmed string or null if input was null