The type string supports the += operator. You can write str += "hello"
but such shortening does not work for functions. The type string is immutable
A function like string.replace
returns a new string and therefore you have to replace it against your old string (if that's what you want).