Made serch respond to empty string as null so that search only starts once search input has content