[CORE][UI] string validation in inputdialog to enable OK button