while s[j]<=s[j+1]:
j+=1
Can run off the end of the string.
Try:
while j!=len(s)-1 and s[j]<=s[j+1]:
j+=1
Also think about what it means when you find the end of a sequence that's alphabetical - is there any reason to check for a longer sequence starting at some position later within that sequence?