taken out extra functions for attributed strings