discard newlines within whitespaces, tests working