def rreplace(string, old, new, count):
    """Replace old with new in a string in reverse order.
    Args:
        string: String to modify
        old: Sub-string to replace
        new: Sub-string to replace old
        count: The number old sub-strings to be replaced"""
    li = string.rsplit(old, count)
    return new.join(li)