title: Replace Last Occurrence of a character in a string
body: <p>I am having a string like this</p>
  
  <pre><code>"Position, fix, dial"
  </code></pre>
  
  <p>I want to replace the last double quote(") with escape double quote(\")</p>
  
  <p>The result of the string is to be </p>
  
  <pre><code>"Position, fix, dial\"
  </code></pre>
  
  <p>How can I do this. I am aware of replacing the first occurrence of the string. but don't know how to replace the last occurrence of a string</p>