code: function replacer(str, obj) {
          if (!str || !obj) {
            return;
          }
          if (obj) {
            for (var key in obj) {
              if (str) {
                str = str.split('${' + key + '}').join(obj[key]);
              }
            }
          }
          return str;
        }
docs: @func replacer
  Replaces ${entity} with object key/value pair
  
  @param {string} str
  @param {object} obj