rewrite scramble string