Add a verification in the numberFormat function