doscan():  Fix scanning of numbers with specified max width