In my package there are several messages like this:
\msg_new:nnn { my-module }
{ something-not-define }
{ "#1"~cannot~be~defined,~a~command~with~the~same~name~has~already~existed. }
where #1 is the name of a command. I would like to add a backslash before it, but don't know how -- I've tried \string or \protect, but \string\ #1 produce an extra space while \string\#1 simply become \#1 in the final message.