Fixed can't modify frozen String by adding .dup