preventing empty string searches