Refactors the monthNamesToPrint array.