import re
def stripRegx(*args):
    string = args[0]
    charater = ''
    if len(args) > 1:
        charater = args[1]

    if charater == '':
        print(string.strip())
    else:
        regx = re.compile(charater)
        print(regx.sub('', string))


stripRegx(' hello ')
stripRegx('hello hello again she', 'he')
