Automatically remove newlines from xpath.