automatically convert []uint8 to string
handle situation where group might be nil