def str_replace_multi(str_, chars):
    """
    replaces many chars in a string.
    :param str_: string to apply replacements
    :param chars: dict in the form {old char: new char, ...}
    """
    for old, new in chars.items():
        str_ = str_.replace(old, new)
    return str_
