Error while using replace function

Could you check any value is null here , like forwarddate or item.Headers(“DateCreated”) ?