formatted a text output