Removed debugging code - the problem was that in my tr call I used
' -_', which was interpreted as a range rather than three characters
as when replaced by '-_ '.

This works now, but I still want to see about possibly doing it with
javascript instead so that the server doesn't have to make the google
books calls.