public static String trimStart(final String value) {
        int spaceDex = 0;
        while (spaceDex < value.length() && value.charAt(spaceDex) == ' ') {
            spaceDex++;
        }

        return value.substring(spaceDex);
    }
public static String trimStart(final String value) {
        int spaceDex = 0;
        while (spaceDex < value.length() && value.charAt(spaceDex) == ' ') {
            spaceDex++;
        }

        return value.substring(spaceDex);
    }
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.

@param value
A <code>String</code> that represents the string to trim.

@return The string with whitespace trimmed from the beginning.
Trims whitespace from the beginning of a string .