Defined variable replacement pattern