Regex to strip new lines should be more reliable

See #11