title: What is correct way to a remove few characters at the end of string C#
body: <p>Consider the following code, what is the correct way to a remove the last two <code>&lt;br/&gt;</code> tags from the end of string in C#? I have followed very naive method, to achieve this. Can you please suggest improvements.</p>
  
  <pre><code>List&lt;string&gt; MessageList; // populated from data source
  Label lblHtmlOutput = new Label();
  StringBuilder sb = new StringBuilder();
  foreach (var item in MessageList)
  {
      sb.Append(item + "&lt;br/&gt;&lt;br/&gt;");
  }
  sb.Remove(sb.Length - 11, sb.Length - 1);
  </code></pre>