結果 : get first n characters from a string python