From WDL spec:
this function replaces all non-overlapping occurrences of pattern in input by replace
But I think what we have in the get_expr_apply is a call to .replace() which only replaces one occurrence (different than the Python function with same name!)
Instead I think we must use JS' replaceAll().