...What are you trying to get rid of? Just normal spaces?
If so try...
strLine2 = strLine2.Trim
You don't need the (" "). If not, exactly what character are you trying to get rid of?
You can find the ascii value of a character this way:
Asc(myChar)
If you are using this to make sure only valid characters are used, I'd suggest you research
Regular Expressions[
^].
---- Edit ----------
I think you need to take a look at
this article[
^].
It shows how to remove white space using regular expressions. I think it will give you some ideas on how to perform these tasks without having to worry about how many spaces there are or what index a word starts at. Here is the basic code to replace multiple spaces, carriage returns, and tabs with a single space:
Dim myRegex As New System.Text.RegularExpressions.Regex("\s+")
strNoWhiteSpace = myRegex.Replace(strLine, "\s+", " ")