Adding toString method to object.
Correcting typo error