Refactor attributed string creation.