code: public static String formatTags(final Map<String, String> tagMap) {
          StringBuilder stringBuilder = new StringBuilder();
          String delimeter = "";
  
          for (Map.Entry<String, String> tag : tagMap.entrySet()) {
              stringBuilder.append(delimeter)
                      .append(sanitize(tag.getKey()))
                      .append("=")
                      .append(sanitize(tag.getValue()));
              delimeter = " ";
          }
  
          return stringBuilder.toString();
      }
docs: Convert a tag map into a space-delimited string.
  
  @param tagMap
  @return a space-delimited string of key-value pairs. For example, {@code "key1=value1 key_n=value_n"}