string rotation to left/right by i places