Properly remove more than one empty line in a row