def replace_string_contents(raw_string, renaming_dictionary):
    """
    Takes a string and replaces it with any changes provided in a renaming dictionary
    :param raw_string: a raw string with which to pass through the renaming dictioanary
    :param renaming_dictionary: a dictionary containing keys to be replaced with their associated values
    :return: string identical to the raw string provided with all changes made based on the renaming dictionary
    """

    # Renames a string using a provided renaming dictionary
    replacement_string = raw_string

    # Iterate over keys in renaming dictionary
    for key in renaming_dictionary:

        # For any keys found in the provided string, replace them using the value of the provided dictionary for that key
        if key in replacement_string:
            replacement_string = replacement_string.replace(key, renaming_dictionary[key])

    # return the modified string
    return replacement_string