Refactor MON_CMD and MON_OPT_TYPE conversion to/from strings