title: remove last word in label split by \
body: <p>Ok i have a string where i want to remove the last word split by \</p>
  <p>for example:</p>
  <pre><code>string name =&quot;kak\kdk\dd\ddew\cxz\&quot;
  </code></pre>
  <p>now i want to remove the last word so that i get a new value for name as</p>
  <pre><code>name= &quot;kak\kdk\dd\ddew\&quot;
  </code></pre>
  <p>is there an easy way to do this</p>
  <p>thanks</p>