結果 : get substring based on index python