Refactor: Make generic string more widely applicable.