Please any one help me, how to restrict the user to type only one character
as input.