Completed isbn conversion algorithm