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 ] ] != str2 [ i ] ) return false ; } return true ; }