Matching with analyzer

I've got a fairly simple index that has a first and last name that are both have an ngram analyzer attached. It's working well as I can search "ali" and get "alice" among others. I probably already know the answer but is there a way to only return exact matches if and only if there are? So in this example the search term is "ali", I want to only return the document that has the first name of "Ali" but if I search "alic" I want to return "Alice" and any other that could be matched via the analyzer. The end user is only going to have a simple search bar.