Class imbalance and statistics
The answer to this question really depends on the insights you are after with these statistics.
Generally speaking however, it is wise to investigate per class in such a situation. Taking your examples this would entail comparing average string lengths for both classes. This will help you understand how both classes are (dis)similar given the dataset.