ignoring empty lines and some other special char when prefixing

Avoid the user typing \n to be prefixed during a tcp session