def METHOD_NAME(self, name, value, char, finder, assign, result):
    """Splits a string at a specified character."""
    col = finder(value, char)
    if col < 0:
        return value
    items = (value[:col].strip(), value[col + 1 :].strip())
    if items[assign] != "":
        setattr(self, name, items[assign])
    return items[result]