Refactoring strings to resources