hashing for new character set
var hashChar = Array ( 26 ) ; for ( var i = 0 ; i < 26 ; i ++ ) { var ch = Math . abs ( charSet [ i ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ) ; hashChar [ ch ] = String . fromCharCode ( ' ' . charCodeAt ( 0 ) + i ) ; } var s = " " ;