Find the hash value for each string
for ( let j = 0 ; j < str [ i ] . length ; j ++ ) { switch ( str [ i ] [ j ] ) { case ' ' : Weight = Weight | 1 ; break ; case ' ' : Weight = Weight | 2 ; break ; case ' ' : Weight = Weight | 4 ; break ; case ' ' : Weight = Weight | 8 ; break ; case ' ' : Weight = Weight | 16 ; break ; } }