That does tell me there are some extraneous characters in your string. HS wouldn't show these in the log if they're HTML tags or otherwise unprintable characters.
Just out of curiosity, try:
hs.writelog("Test", "This is parameter X: " & X.ToString & " " & Len(X.ToString))
hs.writelog("Test", "This is parameter Y: " & Y.ToString & " " & Len(Y.To String))
The Length of X reported likely won't match the visible string.
Just out of curiosity, try:
hs.writelog("Test", "This is parameter X: " & X.ToString & " " & Len(X.ToString))
hs.writelog("Test", "This is parameter Y: " & Y.ToString & " " & Len(Y.To String))
The Length of X reported likely won't match the visible string.
Comment