code: function insert(str, key, valu) {
      const re = new RegExp("\\$\\{" + key + "\\}", 'g');
      return str.replace(re, valu);
    }
docs: Insert a topic into a string formatted like a template string.
  insert("Hello ${loc}", "loc", "World") -> "Hello World"