Added string substitutions to config and corrected logging error