code: function addProperty(prop, func){
    Object.defineProperty(String.prototype, prop, {
      enumerable: true,
      configurable: false,
      get: func
    });
  }
docs: add the property to be used with the String object