pass the list of tasks in both String and Vector<Task>