100 RANDOMIZE 110 REM create two strings 120 LET S$="Hello":LET T$="Bob" 130 REM choose any random character 140 LET C=(RND(127)+32) 150 REM add the character to the string 160 LET S$=S$&CHR$(C) 170 REM check if the string is empty 180 IF S$="" THEN PRINT "String is empty" 190 REM compare two strings 200 IF S$=T$ THEN PRINT "Strings are the same." 210 REM print characters 2 to 4 of a string (a substring) 220 PRINT S$(2:4)