manage empty search string