Slight refactoring for overloaded strings