private static char firstNonWhitespace( StringBuilder builder ) {
        for( int i = 0; i < builder.length(); i++ ) {
            if( !Character.isWhitespace( builder.charAt( i ) ) ) {
                return builder.charAt( i );
            }
        }
        return ' ';
    }
private static char firstNonWhitespace ( StringBuilder builder ) { for ( int i = 0 ; i < builder . length ( ) ; i ++ ) { if ( ! Character . isWhitespace ( builder . charAt ( i ) ) ) { return builder . charAt ( i ) ; } } return ' ' ; }
The first character in the builder that is not a whitespace. Else there are only whitespaces

@param builder
the builder.
@return the first non whitespace