-Added additional validation when parsing numbers