Improved ISBN validator