code: function renameValue(item, rawName) {
    var trimmedName = rawName.trim();
    if (item.cleanFootnotes) {
      var length = trimmedName.length;
      if (
        trimmedName.indexOf("(") === length - 3 &&
        trimmedName.indexOf(")") === length - 1
      ) {
        return trimmedName.slice(0, length - 3);
      }
    }
    return trimmedName;
  }
docs: Trims spaces off rawName If cleanFootnotes is true, also removes trailing (x)'s, eg. Total(c) => Total.