normalized whitespace in config file
added support for macro substitution in replacement, template strings