make sure object is string before using color method
Merge pull request #5 from piavlo/bug/pretty-print

make sure object is string before using color method