If we have a list of contact this method will return only the contact with the specified name