add create span tags in DOM to make sure that text nodes don't have children