Replace text from array

Can I suggest you take a look at some of the excellent array topics on the community first?