so a command is *99 or *9 or *09 [where 9 == a numeric digit]
and a parameter is 9 up to 999999

how do you signal that the command has been input and the parameter begins

i would be tempted to use the # as enter

so cmd 33 p2010 would be
*33#2100#
you will need to establish a method to cope with numbers bigger than a word

you need a method first then code it