kconfig: avoid multiple calls to strlen