Prevent completion triggering on typing space, tab and removing spaces and tabs