strings refactoring