title: Deleting certain character from right and left of a string in vb6 (TrimChar)
body: <p>I want to delete some certain characters that used wrongly in a string.</p>
  
  <p>"........I.wanna.delete.only.the.dots.outside.of.this.text..............."</p>
  
  <p>as you can see I can't use replace for this. I must find a way to delete only the characters at left and right of a string and those dots only an example of characters that I want to delete. I have an array of those unwanted characters. So after the process string should look like </p>
  
  <p>"I.wanna.delete.only.the.dots.outside.of.this.text"</p>
  
  <p>but I couldn't find a way to get this work.</p>