cleanups in text.cpp
small cleanup