Wrap and unwrap text nodes