greet = "Hello, myValue!"greet.freeze# try to append somethinggreet.concat("!") # => TypeError: can't modify frozen string# is the object frozen?greet.frozen? # => true