結果 : check if index exists in string python