title: Remove dot . sign from the end of the string
body: <p>I have this requirement where it is required to remove only the last <code>.</code> dot sign from a string.</p>
  
  <p>Say if we have var <code>str = 'abcd dhfjd.fhfjd.';</code> i need remove the final dot sign which would output <code>abcd dhfjd.fhfjd</code> .</p>
  
  <p>I found this link ( <a href="https://stackoverflow.com/questions/10106610/javascript-function-to-remove-leading-dot">Javascript function to remove leading dot</a> ) which removes the first dot sign but I am new to this whole thing and could not find any source on how to remove a specific last character if exists.</p>
  
  <p>Thank you :)</p>