Problem using REPLACE to swap quotation marks

When I try to do a "convert tag to filename" with the following scripting function, I get a syntax error: $replace(%artist%\%album%\%track% ^ %title%,: , -- ,/, - , , ,",').

I believe the error has something to do with trying to replace double quotation marks with single marks, which is the last "replace" on the end. What's the proper way to reference quotation marks in this script?

Single quotes have a special function so you must write two of them ''

Ah. So the command is $replace(%artist%\%album%\%track% ^ %title%,: , -- ,/, - , , ,",''). Thanks.