quick fix for matching chapter_titles with nodeValues

Chapter titles @line 627 get stripped of white space at the beginning and end of a string, so too must the nodeValues in order for a string comparison to be successful @line 545