double quotes interpret escaped characters and single quotes preserve them.
lear = "K\nA T\nW" puts lear # And here's what you get with single quotes (preserves \n in context): lear = 'K\nA\nW' puts lear