check if two strings are permutation