code: function trimTrailing(text, postfix) {
          if (text && postfix) {
              if (_.endsWith(text, postfix)) {
                  return text.substring(0, text.length - postfix.length);
              }
          }
          return text;
      }
docs: Trims the trailing postfix from a string if its present
  @method trimTrailing
  @for Core
  @static
  @param {String} trim
  @param {String} postfix
  @return {String}