extract target character from dialog