I ended up putting this in by parsing strings as variables. So for DDMathParser:
someFunction("Hello")
... is equivalent to:
someFunction($Hello)
However, this means you can have variables now with more complex stuff:
someFunction("Hello world")
Moles("Ca(OH)2")
... etc