String rewrite