We can replace both RIGHT$ and LEFT$ with MID$ as follows. 'same as ?RIGHT$(ST$,N) ?MID$(ST$,LEN(ST$)-N,N) 'same as ?LEFT$(ST$,N) ?MID$(ST$,0,N)