Need help with ranking multiple players in one command

game.Players.PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(msg)
		for i, v in pairs(Ranker) do
			if v == plr.Name then
				if string.sub(msg, 1, 5) == "/rank" then
					for i, v in pairs(Ranks) do
						if v == string.sub(msg, 7, 10) then
							if game.Players:FindFirstChild(string.sub(msg, 12)) then
								game.Players:FindFirstChild(string.sub(msg, 12)).leaderstats.Dienstgrad.Value = v
							end
						end
					end
				end
			end
		end
	end)
end)

I made a command system with the command “/rank ”. How can I make so its possible to rank multiple players in one command? Ex.: /rank OR-1 ByGermanKnight, Builderman, Robloxuser123

Yea, you can use string.split and separate with a " "

local message = "/rank someone bob joe"
local args = message:split(" ")
table.remove(args, 1)