There are two different methods causing empty text nodes