remove new line characters in the query string