Get your own Python server Result Size: 625 x 565
x
 
txt = "banana,,,,,ssqqqww....."
x = txt.rstrip(",.qsw")
print(x)
banana