def update_name(name, mapping):
    """ Update the street name using the mapping dictionary. """
    for target_name in mapping:
        if name.find(target_name) != -1:
            a = name[:name.find(target_name)]
            b = mapping[target_name]
            c = name[name.find(target_name)+len(target_name):]
            name = a + b + c
    return name