question: public static String trimLeadingWhitespace ( String str ) { if ( ! hasLength ( str ) ) { return str ; } StringBuilder buf = new StringBuilder ( str ) ; while ( buf . length ( ) > 0 && Character . isWhitespace ( buf . charAt ( 0 ) ) ) { buf . deleteCharAt ( 0 ) ; } return buf . toString ( ) ; }
target:  Trim leading whitespace from the given String.