title: How do I replace multiple characters in a String?
body: <p>How do I replace multiple characters in a String?</p>
  <p>Like Java's <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#replaceAll-java.lang.String-java.lang.String-" rel="nofollow noreferrer">replaceAll(regex:replacement:)</a> function.</p>
  <pre class="lang-java prettyprint-override"><code>str.replaceAll(&quot;[$,.]&quot;, &quot;&quot;) //java code
  </code></pre>
  <p><a href="https://stackoverflow.com/questions/44197064/how-to-replace-all-occurrences-of-a-sub-string-in-kotlin">This</a> answer is very close but I want to change more than one character at the same time.</p>