re format strings