I have these 3 strings:
YELLOW,SMALL,STRETCH,ADULT,T21fdsfdsfs YELLOW,SMALL,STRETCH,ADULT,Tdsfs YELLOW,SMALL,STRETCH,ADULT,TD
s.rsplit(',', 1)[0]
Anyway, I suggest having a look at Ignacio Vazquez-Abrams's answer too, it might make more sense for your problem.