title: how to remove comma if string having comma at end
body: <p>I want to remove comma at end if string ends with comma</p>
  
  <p>For example </p>
  
  <blockquote>
    <p>String names = "A,B,C,"</p>
  </blockquote>
  
  <p>i need to remove last comma if string ends with ","</p>