In reply to saritr:
You would be better off trying to convert the text file of transactions you are reading directly to SystemVerilog. Or if you have a limited number of events, encoding them into sothing you can branch into a case statement might be feasible.
If by signal, you mean an RTL variable or net, the answer is not directly. There are no pointers in SystemVerilog. You can only get handles to class objects and interface instances.
I was assuming you got those string values from reading some text file that was created before starting the simulation. It is going to be hard to explain what options you have without knowing more about those strings get generated in the first place. Unfortunately, it might be too difficult to have this discussion in this kins of forum. I suggest you look for some local expertise.