Corrected PrintTextFormatter implementation