function interpolate(string, object) {
    forOwn(object, function(value, key) {
      // escape regexp special characters in `key`
      string = string.replace(RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'), value);
    });
    return string;
  }
Modify a string by replacing named tokens with matching object property values.

@static
@memberOf Benchmark
@param {String} string The string to modify.
@param {Object} object The template object.
@returns {String} The modified string.