Corrected error on empty search string.