attributed string cleanup