text process helper