Remove extra characters from front of the current substring
while ( true ) { if ( s [ st ] . charCodeAt ( ) >= 65 && s [ st ] . charCodeAt ( ) <= 90 && caps [ s [ st ] . charCodeAt ( ) - 65 ] > 1 ) { caps [ s [ st ] . charCodeAt ( ) - 65 ] -- ; st ++ ; } else if ( s [ st ] . charCodeAt ( ) >= 97 && s [ st ] . charCodeAt ( ) <= 122 && small [ s [ st ] . charCodeAt ( ) - 97 ] > 1 ) { small [ s [ st ] . charCodeAt ( ) - 97 ] -- ; st ++ ; } else break ; }