Simplify scanNumericLiteral