NIF, NIE and CIF numbers validation:

* As suggested by 'nschonni', cadenadni.substring(pos, pos + 1) replaced with charAt(pos)