Code looks fine.
You didn't supply us with enough information.
You didn't show us the returned value from the ReadString$ command. I suspect that you intended to use the ReadLine$ command, not the ReadString$ command.
You didn't supply us with enough information.
You didn't show us the returned value from the ReadString$ command. I suspect that you intended to use the ReadLine$ command, not the ReadString$ command.