If str [ i ] is between a and z
else if ( str [ i ] . charCodeAt ( 0 ) >= ' ' . charCodeAt ( 0 ) && str [ i ] . charCodeAt ( 0 ) <= ' ' . charCodeAt ( 0 ) ) { small [ str [ i ] . charCodeAt ( 0 ) - 97 ] = i ; }