Reworked and finished first function to eval numbers validity.