Moved task string functions to util.py