Fixing substring bug in determining if a partial namespace match is present