code: public void convertAllPrefixesToHosts() {
          SurtPrefixSet iterCopy = (SurtPrefixSet) this.clone();
          Iterator<String> iter = iterCopy.iterator();
          while (iter.hasNext()) {
              String prefix = (String) iter.next();
              String convPrefix = convertPrefixToHost(prefix);
              if(prefix!=convPrefix) {
              	// if returned value not unchanged, update set
              	this.remove(prefix);
              	this.add(convPrefix);
              }
          }
      }
docs: Changes all prefixes so that they enforce an exact host. For
  prefixes that already include a ')', this means discarding
  anything after ')' (path info). For prefixes that don't include
  a ')' -- domain prefixes open to subdomains -- add the closing
  ')' (or ",)").