added isNumeric method