Write a program that validates that 10-digit values entered by the user, as a string, represent valid ISBN-10 numbers.