in reply to How to remove unwanted text from elements of an array?
Suitable code would use some method of iterating over the first array (perhaps map) and applying the substitution operator s/// to remove the unwanted text from each.