Strip newlines/whitespace from parsed result