private static String trimQuotes(final String str) {
    if (str.startsWith("\"") && str.endsWith("\"")) {
      return str.substring(1, str.length() - 1);
    }
    return str;
  }
Read a DNS entry from a String.

@param serialized the serialized form of a DNS entry
@return DNS entry if found
@throws IllegalArgumentException if the record cannot be read
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/DNSResolver.java