Update text span creation

This adds some functionality back to creation of text spans.