refactoring, string stats