Very interesting. It seems to work with your test data, but not with mine :o
Test with:
$strings = array(
'git bzr',
' git bzr',
'git bzr ',
"git\tbzr",
'hg bzr',
' hg bzr',
'hg bzr ',
"hg\tbzr",
'git monotone',
'git monotone ',
' git monotone',
"git\tmonotone");
EDIT:
Okay, mine works. The thing is, it should not be:
There were no vowels found in any word(s) in the string.
It should be:
There were no vowels found in some word in the string.
Likewise,
There were vowels found somewhere in the string.
should be:
There were vowels found in all words in the string.