I had a string need to extract value from string. String is dynamic

I am attaching the screenshot of string from string i need to extract Lock value which is showing in screenshot as none and same as others now for other node string might have only one value like Lock only and sometimes 2-3. I need to extract the value and store then in corresponding variables

Please help me out


Do you just extract lock or power lock or padlock?
you can provide string that contains these values

No its not allowing to extract lock or power lock lonely.