title: String.Trim() not removing characters in a string
body: <p>I need to create a String from double the use String.Trim() to remove the full stop, but it doesn't remove it. I think there is also a way to do this numerically but I'd like to do it with the string. Is there a reason it won't remove it? The output from the code is 5.5</p>
  
  <pre><code>$MyDouble = 5.5
  
  [String]$MyDouble2 = $MyDouble
  
  $MyDouble2.Trim(".")
  
  $MyDouble2
  </code></pre>