Renamed input_substitutions to input_replacements