Updated the toString method.