add support for attributed strings