jquery.autosuggest.js:168 values_input.val(values_input.val().replace(","+last+",",",")); Fails to replace the item if the item is the first in the series as there is no preceeding comma.