結果 : get first and last character of string python