Fix bug when autocomplete term contains double quotes