rewrite string format