What if the string was in a file which you sent to the port:

relayon.txt > com155