Check whether the two strings are permutations of each other