beautify text output