Added replacing feature

You can specify in the helper if you would like autocomplete to replace only the current word (original behavior), or replace the full input box. I needed this use case and think it would be useful.