check if a string is rotated version of the original string