Var i As integer
Var MyString, MyShortString As String = " abcdefgh" //4 spaces for example
For i=1 to MyString.Length
if MyString.Mid(i, 1) = Chr(32) then
MyShortString = MyString
MyShortString = MyShortString.right(len(MyShortString) - 1) //delete 1st car.
MyString = MyShortString
end
Next i
Since you’re working with a string, the thing to do is look at the documentation for String, look down the list of methods, and see if one might be useful for whatever it is you need to do.