fixed handling searching for empty string