strip leading and ending whitespace/CRLF
differentiate Server and Client send in debug