Better way to stringify your object