import re


def replace_subject_with_object(sent, sub, obj):
    """Replace the subject with object and remove the original subject"""
    sent = re.sub(r'{}'.format(obj), r'', sent, re.IGNORECASE)
    sent = re.sub(r'{}'.format(sub), r'{} '.format(obj), sent, re.IGNORECASE)
    return re.sub(r'{\s{2,}', r' ', sent, re.IGNORECASE)