def replace_substring(text: str, replace_mapping_dict: dict):
    """Return a string replaced with the passed mapping dict

    Args:
        text (str): text with unreplaced string
        replace_mapping_dict (dict): mapping dict to replace text

    Returns:
        str: text with all the substrings replaces
    """

    for search_string, replace_string in replace_mapping_dict.items():
        text = text.replace(search_string, replace_string)

    return text