title: Can't trim periods (...) and ellipsis (...) from strings in vb.net
body: <p>I'm getting a very strange result when I try to use string.trim to remove characters.</p>
  
  <p>I want to remove leading and trailing periods (...) from strings, but my code only removes trailing characters for some reason. Microsoft's documentation says that the string.trim(char array) method should trim from the start and end of the string. 
  <a href="http://msdn.microsoft.com/en-us/library/zke31k1x.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/zke31k1x.aspx</a></p>
  
  <p>My code to trim the string is...
  <code>mystring=mystring.trim(".")</code></p>
  
  <p>if the input is "2342...." it gets shortened to "2342" but if the input is "...2342" the output is still "...2342" </p>
  
  <p>I've tried defining a character array with 1 member (i.e. "."), but I get the same result. </p>
  
  <p>I've also tried mystring.trimstart(".") but it does not work either</p>
  
  <p>I'm pretty confused about why I'm getting this behavior</p>
  
  <p><strong>EDITED/SOLVED:</strong>
  mystring included two different characters that represent dots (.) </p>
  
  <p>One of the characters in mystring was three dots as an ellipsis (the three together were encoded as a single character with a value of 133). The other was a simple period (value of 46). </p>
  
  <p>This solves the problem:</p>
  
  <pre><code>mystring=mystring.Trim(Chr(133))   'removes ellipsis
  mystring=mystring.Trim(Chr(46))    'removes periods
  </code></pre>