EasyStringIndexPython solution