Stripping lines before sending to client