Added function to test if strings are permutation of each other