modifications for pinbook
text extracted from elements should have whitespace normalized