結果 : python remove last n character from string