To return the rightmost n characters of string x$.
RIGHT$(x$,n)
If n is equal to or greater than LEN(x$), RIGHT$ returns x$. If n equals zero, the null string (length zero) is returned (see the MID$ and LEFT$ functions).
10 A$="DISK BASIC" 20 PRINT RIGHT$(A$, 5) RUN BASIC
Prints the rightmost five characters in the A$ string.