Delegate most of book name validation away from the regex, to the for loop.