BrowserUk,
Actually, unless I am missing something I can't include this solution at all. The testing to see if the two strings first characters are the same is just the initial test. The expensive_function actually does a futher comparison. I had a brain fart to when reading it.