How to stop string:split() after a certain amount of outputs are reached

How do I stop string:split() after a certain amount of outputs

I want to stop string:split() after I reach a certain amount of outputs, an example would be the string splitting 2 times, then everything else after the 2nd string gets put into a 3rd string

Sorry if this sounds confusing, idk how to explain things

Thanks for your help in advance!

local String = "The quick brown fox jumps over the lazy dog."
local Split = string.split(String, " ")
local Result = {Split[1], Split[2], table.concat(Split, " ", 3, #Split)}
for _, Substring in ipairs(Result) do
	print(Substring)
end

--The
--quick
--brown fox jumps over the lazy dog.
5 Likes