title: Why string.TrimEnd not removing only last character in string
body: <p>I have string as below</p>
  
  <pre><code>2,44,AAA,BBB,1,0,,,
  </code></pre>
  
  <p>So now i want to remove only last comma in above string. So i want output as </p>
  
  <pre><code>2,44,AAA,BBB,1,0,,
  </code></pre>
  
  <p>I decided to use TrimeEnd as below</p>
  
  <pre><code>str.ToString.TrimEnd(',')
  </code></pre>
  
  <p>But it removed all the commas after 0. So i get output as below</p>
  
  <pre><code>2,44,AAA,BBB,1,0
  </code></pre>
  
  <p>Why it removes all the 3 commas after 0? I just need to remove last character in string</p>