the variable CAM_P_G has the same prefix as the CAM_P group. We want to allow for parameters having a common prefix with a group, so we need to keep searching after we've found a group that matches the prefix