Replacing an awkward string format.