delete unintended newlines