In this case, you should use variable for string like "INPUT WORD$". And you can count number of letters with LEN like "?LEN(WORD$)". (You can get LENgth of string)