title: Remove empty space from the end of a line in a richtextbox
body: <p>How can I remove empty space from end of line in a richtextbox</p>
  
  <p>Original string</p>
  
  <p>My code:</p>
  
  <pre><code>string[] lines2 = comparedResultRTB1.Lines;
  lines2.ToString().Replace("; );",");");
  </code></pre>