結果 : substring in python based on character