Function CUT

Hi all,
I have a problem, i don’t know how to cut the ${EXTEN} variable.
I tried with the CUT function, but it works only if the variable is like "1-2-3-4-5"
If my var = 999123456, and if i wanna get only 999123… it doesn’t work !

Any help would be really appreciated !

Thank You

how about ${EXTEN:0:6} ?

Thanks a lot