is str1 a rotation of str2

Maybe I should use a string buffer