Example:

10 A$=“ABCDE”

20B$=LEFT$ (A$+“FGH”,6)

30PRINT B$

RUN ABCDEF

RIGHT$ (A$,N)

This will return a substring but starting from the Nth character from the end and running to the last one - the right-most character in the string A$.

Example:

10 A$=“WHY”

20B$=RIGHT$(A$+“ME”,4)

30PRINT B$

RUN HYME

MID$ (A$,M,N)

This function returns a substring of the string A$ starting from the Mth character with a length of N characters.

Example:

10A$=“ABCDEFGH”

20B$=MID$(A$,2,3)

30PRINT B$

RUN BCD

55