trim() the node-content

Older browsers (we saw it happening with older versions of IE) in combination with weird ad-servers would include empty spaces before and/or after a node's text-value. This fix will trim the textContent, thus removing leading and trailing spaces.