def do_replacements(string, replacement_dict):
    """Return the string `string` with all the keys/meta-vars in `replacement_dict`
    replaced by their values."""
    for key in replacement_dict:
        string = string.replace(key, replacement_dict[key])
    return string