output oject as a string