lua replace word in string code example Example: replace part of string lua name = "^aH^ai" name = name:gsub("%^a", "")