Replace <NAME> with $NAME in code