Get rid of unnecessary line breaks and newlines