I need to convert the string into key value pair. I had tried with this code, but I not able to get the expected output,