Swift 4: Validating a 13 digit ISBN