Remove empty textnodes. Wrap text nodes in span element.