Avoid trying to autocomplete when the text is too long