updated the use of the toString() method.

Changed the toString() method, to function the same as the getMonthName(), as the book's problem wants.