結果 : ruby remove characters from end of string