def replace_chars(a, chars):
    """
    function that replaces the occurrences of chars in the string
    :param a: input string
    :param chars: chars to be replaced with "" (nothing)
    :return:
    """
    string = a
    for char in chars:
        copy_string = string.replace(char, '')
        string = copy_string
    return string