print a string to a serial device