normalize_isbn_10("012491540x") # "012491540X"
normalize_isbn_10("012491540x xe32ea") # "012491540X"
normalize_isbn_10("012491540x", convert.to.isbn.13=TRUE)
# "9780124915404"
normalize_isbn_10("513213012491540x") # "012491540X"
Run the code above in your browser using DataLab