In addition to the provided solution you could also utilise a long string. Long strings in Lua are denoted by text enclosed/enveloped in a pair of double square braces, they are displayed in the same format in which they are written.
local players = game:GetService("Players")
local player = players.LocalPlayer
player:Kick([[
1
2
3
4
5
6
7
8
9
0]])