I needed to be able to trim leading & trailing spaces that may have been inadvertently entered by the user as part of their search criteria. I tried to find documentation on this to no avail. If there's a better way to do it, please let me know.
Until then, this is what I did...
I used a separate button to execute the search. The onclick of that button fires this method:
And LoopThruFilterControls looks like this: