Asserts with Qt 6. Instead, check with the static QChar::isLetter, that handles invalid input properly.