結果 : extract characters from a string in python