Made isAlldigits recursive to no lose marks.