def replace_patterns(string, patterns):
    """Replaces multiple patterns in a string.
    - patterns: Sequence of (old, new) substrings."""
    for old, new in patterns:
        string = string.replace(old, new)
    return string