Add str to array if array contains str