Consider the following code
puts "Hello, world!"
A string is a collection of textual characters.
It may include digits, letters, whitespace, and symbols of any length.
All strings in Ruby are objects of the String class:
puts "Hello, world!".class
Strings can be included in operations, added to, and compared against.
You can assign strings to variables:
x = "Test" y = "String" puts "Success!" if x + y == "TestString"