determine whether a string is a rotation of another string