Stupid fix for newlines. Extensible for other whitespace