Not really needed according to the previous code. As you can see, the |aContact.name[0].trim()| code is just the |targetName| name previously passed to the |endOfMatchByName()| function. We just need to pass now the |aContact| for the |id| checking :-) Anyhow, an additional control may do no harm :p