how to find highest index of a element in python string