added number recognition to gettok function