Removes unnecessary empty lines