copy the style value so that a mutable string doesn't screw up the values to write