def format_zip(zip)
      zip = nil unless zip.scan(/[0-9]/).length.in?([4, 5, 8, 9])
      zip = zip&.gsub(/\s/, ' ')&.strip
      zip = zip&.split('-')&.first
      zip = nil if zip&.scan(/[A-Za-z]/)&.any?
      (zip = "0#{zip}" if zip.length == 4) if zip.present?
      (zip = nil if zip.length != 5) if zip.present?
      zip&.strip!
      zip&.squeeze!(' ')
      zip
    end
def format_zip(zip)
      zip = nil unless zip.scan(/[0-9]/).length.in?([4, 5, 8, 9])
      zip = zip&.gsub(/\s/, ' ')&.strip
      zip = zip&.split('-')&.first
      zip = nil if zip&.scan(/[A-Za-z]/)&.any?
      (zip = "0#{zip}" if zip.length == 4) if zip.present?
      (zip = nil if zip.length != 5) if zip.present?
      zip&.strip!
      zip&.squeeze!(' ')
      zip
    end
FORMAT ZIP 
 CALL: Wrap.new.format_zip(zip)