omitting keys from toString in some cases