rotate string problem