title: remove "," from string if present at end
body: <p>What is the best way to remove <code>,</code> from following strings.</p>
  
  <ol>
  <li>one,two,three,</li>
  <li>three,four,five</li>
  <li><p>six,seven,eight,nine,ten,</p>
  
  <blockquote>
  <pre><code>int strLength = someString.Length;
  
  if (strLength &gt; 0)
  {
       findString = findString .Substring(0, str.Length - 1);
  }
  
  if (findString ==",")
  {
       someString.Remove(someString.Length - 1)
  }
  </code></pre>
  </blockquote></li>
  </ol>
  
  <p>I have quickly compiled this code directly in StackExchange editor as an example (It may be have syntax error.</p>
  
  <p>Please take above as logic purpose only.</p>
  
  <p>I would appreciate if someone can provide optimized code for above logic.</p>
  
  <p><strong>UPDATE</strong>: I actually want to remove  <code>,</code> from string if present at the end of string not in middle.</p>