Use object's built-in replace() method