Implemented toString() method.