Added proper empty string checking for agree counts