added string rotation algorithm