Add a prepareString() method that escapes wildcards before regex matching.