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