結果 : python replace first and last character in string