Checking for undefined string in groups