When connecting through telnet the server was not recognizing our commands because
telnet is adding \n and \r at the end of the line.

This fixes it