title: Scala. How get last word in String
body: <p>Given a String, how to get the last word in Scala, assuming words divided by space?</p>
  
  <p>Example:</p>
  
  <pre><code>val s = "Hello world1, world2, world"
  </code></pre>
  
  <p>Expected output: <code>"world"</code></p>