you first want to check if there is an “s” then you want to do the substitution. I think you have those both in one line if user_input.gsub!(/s/, “th”).
確定! 回上一頁