I see a few issues.
- If the new string is longer than the declaration, overflow.
- The way you declared the string is not a variable but a fixed string. You wrote you didn't declare a variable then you tried to treat it as a variable. You can't have it both ways.
Go ahead and declare the variable string so it's writeable.