Refining text output