remove extra nl characters