omit unnecessary strings when printing yaml of config