Bug 1040881 - Searching doesn't work on contacts with middle names

This block is pretty similar to the one above, does it make sense to encapsulate in a little function where we pass an array of search terms?