working rotate with a string