Calculate a checkdigit on a number string