GETLAST

GETLAST(g) gives a variate containing the position of the last non-space character in each string of the text g.