The modification code that i wan is:

When:
m = "i wan do something"

i need a modification code when get m result...

the code will automatic modify it become:

"i\\ wan do \\something"

i wan add "\\" for the result...

>>> mystring = 'I have a t on my keyboard'
>>> mystring.replace(' ', ' \\')
'I \\have \\a \\t \\on \\my \\keyboard'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.