extract entities target character from dialog input