.replaceVariables(), resolves #8!