title: Replace the last part of a string
body: <p>I want to replace the last String which is a <code>,</code> with <code>)</code>.</p>
  <p>Suppose the string is:</p>
  <blockquote>
  <p>Insert into dual (name,date,</p>
  </blockquote>
  <p>It is to be converted to:</p>
  <blockquote>
  <p>Insert into dual (name,date)</p>
  </blockquote>