Determin the rotation of the string
Determin the sub string of a string