edited the String constructor for TaskClass