Shift string with rotation.