in reply to string compare matches incorrectly
Your code does not match your output. Please post actual, working code, reduced to the basic problem.
Alexander