import re

result = re.sub(r"vasya", "", "Vasya foo vasya bar VASYA", 0, re.IGNORECASE)
if result:
    print (result)