clean up text.{cc,h}