Stringify objects instead of printing [object Object]