public static String trimStart ( final String value ) { int spaceDex = 0 ; while ( spaceDex < value . length ( ) && value . charAt ( spaceDex ) == ' ' ) { spaceDex ++ ; } return value . substring ( spaceDex ) ; }
Trims whitespace from the beginning of a string .