Refactoring: Extract code to mangle SearchableText queries into its own function.
Add helper functions to prepend and append wildcards to search terms.