determine if two strings are rotations of each other