Fix side effect methods in String when self is a frozen object