Refactored string construction.