title: Remove last character of a string (VB.NET 2008)
body: <p>I am trying to remove a last character of a string. This last character is a newline (System.Environment.NewLine).</p>
  
  <p>I have tried some things, but I can not remove it.</p>
  
  <p>Example:</p>
  
  <pre><code>myString.Remove(sFP.Length - 1)
  </code></pre>
  
  <p>Example 2:</p>
  
  <pre><code>myString= Replace(myString, Environment.NewLine, "", myString.Length - 1)
  </code></pre>
  
  <p>How I can do it?</p>