title: Rich text box in C# trim and length count
body: <p>RichTextBox C#</p>
  
  <p>When i do a comparison</p>
  
  <pre><code>if RichTextBox.Lines.Count() &gt; 2
  </code></pre>
  
  <p>//Do Something</p>
  
  <p>For some reason i get these data stored in rich text box, while i am working on restricting that i need to validate for the screwed up data</p>
  
  <pre><code> [0] - "East coast road"
   [1]- "New York"
   [2] -""
  </code></pre>
  
  <p>This returns count as 3 where in there should be only 2, how do i eliminate that white space next line?</p>