Module:Test

local XM = require("Module:XM") local class = XM.class local array = XM.array local object = XM.object local str = XM.str

mw.log(str.replace("Hello World", "H", function(s) return str.upper(s) end))