title: Removing Last character of a string c#
body: <p>I am perplexed that the code I wrote is not doing the action I wanted to.</p>
  
  <p>My aim : Removing the last character of a string (string build using string builder).</p>
  
  <p>My approach :</p>
  
  <pre><code>  string toTrim = STR.ToString(); //here i have "INSERT INTO [dbo].[RCCMrec] ('ANI' , 'DNIS' , 'Date' , 'Time' , 'ConnId' , 'UUID' , 'EmployeeId' , 'AgentDN' , "
  
   toTrim = toTrim.Remove(toTrim.Length - 1);
      // here I STILL have "//here i have "INSERT INTO [dbo].[RCCMrec] ('ANI' , 'DNIS' , 'Date' , 'Time' , 'ConnId' , 'UUID' , 'EmployeeId' , 'AgentDN' , ""
  </code></pre>
  
  <p>What am I doing wrong ?</p>