Whitespace cleanup.  Copy before pop.

Make sure we copy any data before we modify it so the input data is preserved.