title: Remove only one newline from the end of string in vb.net
body: <p>I have a string like below</p>
  
  <pre><code>test1
  test2
  test3
  newline
  newline
  newline
  </code></pre>
  
  <p>here i am using <code>s = s.TrimEnd(ControlChars.Cr, ControlChars.Lf)</code> to remove the last newline only, but it's removing all three newline.</p>
  
  <p>i want to remove only one last newline from the string if any</p>
  
  <p>Thanks in advance...</p>