refactor. lock input after the first char.