@hoangkcSep 22.2007 — #as logic language is different from normal one,
you said you need to execute the loop until it gets space OR closing bracket.
the space character, will not match [I][COLOR="Red"]str.charAt(cnt)!= ' '[/COLOR][/I] but, obviously, match [COLOR="Red"][I]str.charAt(cnt)!= ')'[/I][/COLOR], therefore, [B][COLOR="Red"]||[/COLOR][/B] will return true.