Clean out excess Head/Equal signs from revert