title: How can I remove the last word from a string?
body: <p>How can I remove the last word from a string?</p>
  
  <p>For example, with this input:  <code>"I am from Tamil Nadu."</code></p>
  
  <p>I want this result:  <code>"I am from Tamil."</code></p>