Lua Code:
local Title = f:CreateFontString(nil, "OVERLAY", "GameFontNormal")
Title:SetPoint("Center",0,166)
local function Update()
Title:SetText("Title")
end
Your function should be local. And you dont need to create a new fontstring on every update.
With settext you can modify it.