Improved test for string search in MySQL