check if a string contains value ruby code example Example: include ruby string puts "Sample".include? "am"