Allow for substitutions in replace, suck in ENV and add to params