Handle newline inside of query