use substitute instead of substituteVariable
Merge pull request #5 from jlambert121/variable_substitution

use substitute instead of substituteVariable