import re s = "Insert your string here" # this will look to upper- AND lower-case vowels # this is equivalent to re.sub("[aeiouAEIOU]", "", s) re.sub("[AEIOU]", "", s, re.IGNORECASE) >> "nsrt yr strng hr"