limiting length of user input