Replaced toString with instanceof
Merge pull request #56 from santhnm2/graphics

Replaced toString with instanceof