title: Get last word js
body: <p>This removes the last word. How do I get the last word (Stripe)?</p>
  
  <pre><code>var BaseShirtURL = "Base Shirt Draped with Fabric Stripe";
  BaseShirtURL = BaseShirtURL.substring(0, BaseShirtURL.lastIndexOf(" "));
  alert(BaseShirtURL);
  </code></pre>