The problem is in sub LoadINI.
You should replace all the Flag(0) = ... lines to:
Code:
For i = 0 To 5
b = FileRead(c1)
Flag(i) = SubString(b,StrIndexOf(b,"=",0)+1,StrLength(b)-StrIndexOf(b,"=",0)-1)
Next
You've set the length to be one character longer than it should be.
So a trailing space was added to Flag(i).