If this is not first appearance of current character in str1 , then check if previous appearance mapped to same character of str2
else if ( map [ str1 [ i ] . charCodeAt ( ) ] != str2 [ i ] . charCodeAt ( ) ) return 0 ; } return 1 ; }