import re


def sub(find:str, replacement:str, text:str):
    """
    A wrapper over re.sub.
    Created initially to remove replace complete words, not as extensively used by the time the project ended.

    :param find: the string to find
    :param replacement: the replacement string
    :param text: the text to search within
    :return: updated text
    """
    pat = re.compile(r"([^\w])(" + find + r")([^\w])")
    return re.sub(pat, r'\1' + replacement + r'\3', text)