Fix side effect methods in String for frozen objects