reduce(lambda x, y: x.replace(y, dict[y]), dict, s)"