variable substitution filtering