Small parsing refactoring regarding number recognition.