minor code optimizing optimizing

Sorry, there was a minor blur in the last one. It would not work with books that include a # in the title. This one here (like the original code) does.