I have a url during runtime

urlValue =

http://intranetportal.com/sites/PeopleSearch/Pages/peopleresultsPrint.aspx#Default={"k":"","r":[{"n":"Office","t":[""ǂǂ426f73746f6e"",""ǂǂ4368696361676f"",""ǂǂ4443"",""ǂǂ4c6f7320416e67656c6573"",""ǂǂ4e657720596f726b "",""ǂǂ53616e204672616e636973636f"",""ǂǂ53696c69636f6e2056616c6c6579"",""ǂǂ554b""],"o":"OR","k":false,"m":{""ǂǂ426f73746f6e"":"Boston",""ǂǂ4368696361676f"":"Chicago",""ǂǂ4443"":"DC", ""ǂǂ4c6f7320416e67656c6573"":"Los Angeles",""ǂǂ4e657720596f726b"":"New York",""ǂǂ53616e204672616e636973636f"":"San Francisco",""ǂǂ53696c69636f6e2056616c6c6579 }}]}

I tried substring test and returns correctly for single word such as Boston, Chicago. If I pass San Francisco, New York, it does not match and returns no match found or alert blank.

Experts please help me match two word such as "San Francisco" within the url string?

var MasterOffice = "";

var Office = ["Boston","Chicago","DC","Los Angeles","New York","San Francisco"];

for(i=0; i<Office.length; i++)
{
if ( urlValue.indexOf(Office[i]) != -1 )
{

MasterOffice += Office[i];
}
}

alert(MasterOffice);