Wait for about 2 seconds before sending anything to the Arduino. The opening of the serial interface resets the Arduino and it's waiting then on the serial interface for new sketches to be uploaded. If you wait 2 seconds before sending anything the bootloader ends it's work and gives control to your sketch which then can read your text and prints it to the printer.