changed console.log to compare equivalence with toString()