refactored the token splitter to handle mutlidigit numbers