Updated toString method