Determines if a number is a valid ISBN number