prevent search for empty string. closes #5