Remove duplicate newlines