title: How to remove last character in String?
body: <p>how to remove last word in a string
  word should be dynamic
  for example:-<code>String [] a={"100-muni-abc"};</code>
   i want output like this 100-muni 
  remove last one-abe</p>