Fixed so text node with other characters than whitespace is removed