Process new lines correctly