def errstr(s, ebegin, eend):
    """
        errstr('.do r[err]', 4, 6)

        .do **r[**err]
              ^^
    """
    before, err, after = s[:ebegin], s[ebegin:eend], s[eend:]
    res = f'{before}`{err}`{after}'
    return res