WIP: gsub with capture reference in the replacement string