Handle string doc text more cleanly.