Support variable substitution in direct input mode