added support for attributed strings