update the text_cost docstring