Added function to append task number to each task string