Refactored text_* to be wrappers for 1 function
pep8 changes