Editing utils method toText to stringify objects