Simplify stripping of text properties