In python (FWIW), if a string contains embedded " characters, str() represents it using '...' to enclose it (and escapes any ' present in it); otherwise, it encloses in " characters: <code>
>>> str('hello "world" - who\'re you ?')
'hello "world" - who\'re you ?'
>>> str("hello 'world'")
"hello 'world'"
>>> str("hello \"world\" - who're you ?")
'hello "world" - who\'re you ?'
>>> str('hello \'world\'')
"hello 'world'"
</code>
Not sure it's worth doing the same here, but seemed worth mentioning, given where you found your inspiration ;^>