[ruby] How to check whether a string contains a substring in Ruby