def format_city(city)
      city = city&.gsub(/\s/, ' ')&.strip
      city = nil if city&.scan(/[0-9]/)&.any?
      city = nil if city&.downcase&.include?('category')
      city = nil if city&.downcase&.include?('model')
      city = nil if city&.downcase&.include?('make')
      city = nil if city&.downcase&.include?('inventory')
      city = nil if city&.downcase&.include?('tracker')
      city = nil if city&.downcase&.include?('push')
      city = nil if city&.downcase&.include?('(')
      city = nil if city&.downcase&.include?(')')
      city = nil if city&.downcase&.include?('[')
      city = nil if city&.downcase&.include?(']')
      city&.gsub!('|', ' ')
      city&.gsub!('•', ' ')

      return unless city.present?
      street_types = %w[avenue boulevard drive expressway freeway highway lane parkway road route street terrace trail turnpike]
      invalid_city = street_types.find { |street_type| city.downcase.include?(street_type) }
      city = nil if invalid_city.present?

      return unless city.present?
      st_types = %w[ave blvd dr expy fwy hwy ln pkwy rd rte st ter trl tpke]
      city_parts = city.split(' ')

      invalid_city = city_parts.select do |city_part|
        st_types.find { |st_type| city_part.downcase == st_type }
      end

      city = nil if invalid_city.present?
      city = nil if city&.downcase&.include?('/')
      city = nil if city&.downcase&.include?('www')
      city = nil if city&.downcase&.include?('*')
      city = nil if city&.downcase&.include?('number')
      city = nil if city&.downcase&.include?('stock')
      city = nil if city&.downcase&.include?(':')
      city = nil if city&.downcase&.include?('ID')

      city&.strip!
      city&.squeeze!(' ')
      city = nil if city.present? && city.length > 50
      city = nil if city.present? && city.length < 4
      city = city&.split(' ')&.map(&:capitalize)&.join(' ')
      city
    end
def format_city(city)
      city = city&.gsub(/\s/, ' ')&.strip
      city = nil if city&.scan(/[0-9]/)&.any?
      city = nil if city&.downcase&.include?('category')
      city = nil if city&.downcase&.include?('model')
      city = nil if city&.downcase&.include?('make')
      city = nil if city&.downcase&.include?('inventory')
      city = nil if city&.downcase&.include?('tracker')
      city = nil if city&.downcase&.include?('push')
      city = nil if city&.downcase&.include?('(')
      city = nil if city&.downcase&.include?(')')
      city = nil if city&.downcase&.include?('[')
      city = nil if city&.downcase&.include?(']')
      city&.gsub!('|', ' ')
      city&.gsub!('•', ' ')

      return unless city.present?
      street_types = %w[avenue boulevard drive expressway freeway highway lane parkway road route street terrace trail turnpike]
      invalid_city = street_types.find { |street_type| city.downcase.include?(street_type) }
      city = nil if invalid_city.present?

      return unless city.present?
      st_types = %w[ave blvd dr expy fwy hwy ln pkwy rd rte st ter trl tpke]
      city_parts = city.split(' ')

      invalid_city = city_parts.select do |city_part|
        st_types.find { |st_type| city_part.downcase == st_type }
      end

      city = nil if invalid_city.present?
      city = nil if city&.downcase&.include?('/')
      city = nil if city&.downcase&.include?('www')
      city = nil if city&.downcase&.include?('*')
      city = nil if city&.downcase&.include?('number')
      city = nil if city&.downcase&.include?('stock')
      city = nil if city&.downcase&.include?(':')
      city = nil if city&.downcase&.include?('ID')

      city&.strip!
      city&.squeeze!(' ')
      city = nil if city.present? && city.length > 50
      city = nil if city.present? && city.length < 4
      city = city&.split(' ')&.map(&:capitalize)&.join(' ')
      city
    end
FORMAT CITY