-- Function to replace variations of Leandre with Léandre. function Str(el) -- Case-insensitive substitution using pattern matching -- [Ll][Ee][Aa][Nn][Dd][Rr][Ee] matches Leandre in any capitalization el.text = el.text:gsub("[Ll][Ee][Aa][Nn][Dd][Rr][Ee]", "Léandre") return el end