Updated toString method.