String refactoring