Added trimming for the CleanedFromTags method