As far as I remember, if you assign a value/property to a variable, changing that value will not modify the original value.
I set up a simple test, with the below code:
local name = script.Parent.Name
local newName = name:gsub("e", "o")
print("Name: "..name)
print("New Name: "..newName)
The name variable afterwards still reads Test, while the newName variable reads Tost. Like what Nacht said, the original variable/property is not changed.