A string rotation utility