In this case “$string” means you want to use the value of the key named “string” in the processed document. Contrast with “string” which would be a literal string.
In this case “$string” means you want to use the value of the key named “string” in the processed document. Contrast with “string” which would be a literal string.