Substitue all occurences of strings with their replacements. Substitution pairs are read from a file.