I have these 3 strings:
YELLOW,SMALL,STRETCH,ADULT,T21fdsfdsfs YELLOW,SMALL,STRETCH,ADULT,Tdsfs YELLOW,SMALL,STRETCH,ADULT,TD
You can't. Create a new string with the pieces you want to keep.
','.join(s.split(',')[:4])