"In Smalltalk, everything is an object. Including strings. Strings are instances of the class String." |string| string := '\n'. "Two Characters, \ and an n - literal form" string := String with: $\ with: $n. "As above, but creating the string by passing messages" string := 'Jon ''Maddog'' Orwant'. "Literal string containing single quotes" string := String with: Character cr. "String with a newline character" string := 'Jon "Maddog" Orwant'. "Literal string containing double quotes" "ANSI standard Smalltalk does not allow arbitrary literal string delimiters" "Reading a stream of characters up to (but not including) 'EOF'. Most String handling in Smalltalk is done using streams (instances of class Stream or one of its subclasses." |sourceStream a| sourceStream := ReadStream on: 'This is a multiline here document terminated by EOF on a line by itself EOF'. a := sourceStream upToAll: 'EOF'. |