# see the difference between single-quote and double-quote
puts "Add them #{4 + 5}\n\n"
puts 'Add them #{4 + 5}\n\n'
# MultiLine Strings
multiline_string = <<EOM
This is a very long String
that contains interpolation
like #{7 + 19} \n\n
EOM
puts multiline_string
first_name = "James"
last_name = "Norm"
full_name = first_name + last_name
middle_name = "Justin"
full_name = "#{first_name} #{middle_name} #{last_name}"
puts full_name.include?("Justin")
puts full_name.size
puts "Vowels: " + full_name.count("aeiou").to_s
puts "Consonants: " + full_name.count("^aeiou").to_s
puts full_name.start_with?("James").to_s
puts "Index :" + full_name.index("Norm").to_s
puts "a == a : " + ("a" == "a").to_s
puts "a".equal?"a"
puts first_name.equal?(first_name)
# or just: puts first_name.equal?first_name
puts full_name.upcase
puts full_name.downcase
puts full_name.swapcase
full_name = " " + full_name
full_name = full_name.lstrip
full_name = full_name.rstrip
full_name = full_name.strip
puts full_name
puts full_name.rjust(20, '.')
puts full_name.ljust(20, '.')
puts full_name.center(20, '.')
puts full_name.chop # remove last char
puts full_name.chomp('rm') # remove the desired chars
puts full_name.delete("a") # delete every "a"
puts full_name.split(//) # every char to items of an array
puts full_name.split(/ /) # every word to items of an array