handle deprecated long strings