Add three searches to the search server behavior.
Begins with, Ends with, and includes
For the begins with search add a space at the end
For the ends with search add a space in the beginning
For the includes search add a space on both sides.
That way it would find:
with the begins with search
John" Alan "Doe
with the includes search
with the ends with search