# File lib/dnsruby/resource/TLSA.rb, line 98
        def parse_string(data)
          buf = ''
          comment = false
          multiline = false
          data.each_char do |ch|
            case ch
            when ';' then comment = true
            when '\n'
              raise ArgumentError, 'string format error' unless multiline
              comment = false
            when '\r' then next
            when ' ' then next
            when comment then next
            when '(' then multiline = true
            when ')' then multiline = false
            else
              buf += ch
            end
          end
          raise ArgumentError, 'string format error' if multiline

          [buf].pack('H*')
        end