toString() method for Deadline Task and Repeating task