question: public static String trim ( CharSequence s ) { if ( s == null ) { return null ; } Matcher m = sTrimPattern . matcher ( s ) ; return m . replaceAll ( "$1" ) ; }
target:  Trims the string, removing all whitespace at the beginning and end of the string. Non-breaking whitespaces are also removed.