string generalization