[FIX]: extra spaces

This update fixes those cases for which there are text nodes with empty
spaces.