title: How to use dynamic string substitution in Kotlin?
body: <p>I'm looking for a Kotlin way to do a dynamic values substitution into a string.
  It is clear how to implement it, just want to check if there is something similar in standard library.</p>
  <p>Could you help me to find a function which given <code>template</code> and <code>data</code> map returns a resulting string with all template keys replaced with their values?</p>
  <pre><code>fun format(template: String, data: Map&lt;String, Any&gt;): String { /* magic */ }
  
  format(&quot;${a} ${b} ${a}&quot;, mapOf(&quot;a&quot; to &quot;Home&quot;, &quot;b&quot; to &quot;Sweet))   // -&gt; &quot;Home Sweet Home&quot;
  </code></pre>