Complete Ex. 7 (search array for text, append text if exists)