Reduced a useless copy of shared_ptr when copying String.