title: Remove whitespaces in string with Scala
body: <p>I want to remove the whitespaces in a string. </p>
  
  <pre><code>Input: "le ngoc ky quang"  
  Output: "lengockyquang"
  </code></pre>
  
  <p>I tried the <code>replace</code> and <code>replaceAll</code> methods but that did't work.</p>