Fix error with long strings