GDScript strings are mutable?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kelaia

GDScript strings are mutable or immutable? Godot 3 and 4

:bust_in_silhouette: Reply From: Calinou

Booleans, integers, floats and strings in GDScript are immutable. Modifying them in any way will always return a new copy.