public static String trimFront ( String input ) { int i = 0 ; while ( i < input . length ( ) && Character . isWhitespace ( input . charAt ( i ) ) ) i ++ ; return input . substring ( i ) ; }
Trims off white space from the beginning of a string .