Minor fix for the tray icon menu behavior
Now autocomplete replace the whole word and adds an space at the end