Added a max length to the search entry