def initialize(str)
      raise InvalidFormat if str.nil?

      match_data = str.upcase.match(/^([A-Z0-9]{6})(\d{1})?$/)