remove extra newlines