Overriding the toString() method in Object class