Implemented toString method.