title: Remove specific character from string from last index
body: <p>How to remove specific character ',' from String from last index if exist.Is it possible to remove ?</p>
  
  <pre><code>String str="update employee set name='david', where id=?";
  </code></pre>