In this case, MID$ is available. A$="echo bananas" B$=MID$(A$,5,LEN(A$)-5) "bananas" will be substituted for B$.