Improved extractNumber() method in DataParser.