結果 : ruby remove substring from end of string