Once I read messages from the inbox , I want to find the sender of the sms , so I search for the mobile_number in the contacts module using the contact name which I get with box.address(sms_id) .

cdb = contacts.open()
matches = cdb.find(str(sender)) # sender is the name of the contact
if matches:
num = matches[0].find("mobile_number")
if num:
return num[0].value
return None
return sender

But the problem here is "cdb.find(str(sender))" searches only the first name and ignores the last name ,is there a way I can come over this .