prevent searches for empty strings