rewrite unique string