Split SUB into CUT for lists and SNIP for strings
Define EDGE, which returns the last position of a list or string