It's not the LEN() function, it's the PROMPT command. Try the following Code:PROMPT "type a string:"; string$
string2$ = " x "
TotalLength = LEN(string$)
OtherLength = LEN(string2$)
PRINT "The total number of characters in your string is :" ; TotalLength
PRINT "The total number of characters in the other string is :" ; OtherLength
END
Apparently, LB does an automatic TRIM$() to remove any leading or trialing white space from PROMPT. I would be more inclined to consider it an error in LB, to be honest. I'll TRIM$() my own input, thank you. ^_^