Added contains check to autocompletion to avoid bad behavior.

Don't actually autocomplete text if the match is not a startsWith match.