Moved searchtermWild to prevent calling .toLower() on a null value