Add option to check length of user input