code: public String format(PatriciaTrie<V> trie, boolean formatBitString) {
          StringBuilder builder = new StringBuilder();
          builder.append(formatHeader());
          builder.append(formatNode(trie.getRoot().getLeft(), -1, trie.getKeyMapper(), formatBitString));
          builder.append(formatTrailer());
          return builder.toString();
      }
docs: Format trie
  
  @param trie  trie to format
  @param formatBitString  true if the bits for this key should be included in the node
  @return formatted trie, not null