Consolidate generic object str method