delete strange chars and end of line