Extract double string

Hello,
I have the following problem. I have a script that connects to a Wenglor camera via socket (TCP/iP). This works great.
I also receive the Lima response from Wenglor via Socket ( Variable1 = socket_read_string(socket_name_TCP ). This looks like this, for example: Variable1:
““
To define the response precisely, I use prefix and suffix:
Variable2 = socket_read_string(socket_name_TCP,interpret_escape=True, prefix=“Re”,suffix=“Ok”)
Variable2=”ply”
There are problems extracting more complex responses from the received string because there are several strings “ “ in the string in Variable1. Unfortunately, Polyscope does not tolerate this.
So the ““ in the string would be best replaced. This would make the response completely usable in Polyscope. Are there any solutions or ideas for this?