結果 : python regex replace last character in string