title: What is to best way hot to create dynamic string template
body: <p>I would like to have a dynamic string template in Javascript like this:</p>
  
  <pre><code>let stringSentence = 'Hello, my name is --%-- and I am from --%--';
  </code></pre>
  
  <p>then ..</p>
  
  <pre><code>replaceString(stringSentence , ['John', 'London'];
  </code></pre>
  
  <p>Expected output: <em>Hello, my name is John and I am from London</em></p>
  
  <p>Another example:</p>
  
  <pre><code>let stringSentence = 'Hello, my name is --%-- and I am from --%-- and I drink a --%--';
  replaceString(stringSentence , ['Jacob', 'New York', 'Juice'];
  </code></pre>
  
  <p>Expected output: <em>Hello, my name is John and I am from London and I drink a Juice</em></p>
  
  <p>My answer is, how is the best way how to implement it this string template system.</p>
  
  <p>Can this be done without <code>for</code> loops or <code>split/join</code> array action? By regex? If so, how?</p>