Updated StripTags method