add extra whitespace after autocomplete and fixed the modify autocomplete