Handle empty groups inside angle brackets