Text reformatter