Deleated the routine to extract digits that required the length as it was an unnecesary argument