Added primary_str check to group_control.py_in