Convert the string to a pointer, or the string to a handle?

have a look at handle and ptr_for_handle handle

and also pvars if you want to get a bit more advanced pVars

hope this helps