assign last group generated str to group value