結果 : extract first n characters from string python