Remove excessive newlines