keybinding: check str length