Set "maxlength" attribute for input for fast search