public static CharSequence ltrim ( CharSequence str ) { int len ; int i ; if ( str == null || ( len = str . length ( ) ) <= 0 ) return "" ; for ( i = 0 ; i < len ; i ++ ) if ( ! Character . isWhitespace ( str . charAt ( i ) ) ) break ; if ( i >= len ) return "" ; return str . subSequence ( i , len ) ; }
Trim horizontal whitespace from left side .