Make name completion work in middle of input