def enforce_string(func):
    """
    Decorator to enforce a string argument.
    """
    def wrapper(self, *args):
        if type(args[0]) is not str:
            raise ValueError("Invalid type provided. Must be a string.")

        func(self, *args)

    return wrapper