Update text_tools.R