in reply to Re^3: Test if variable is equal to a bracket?in thread Test if variable is equal to a bracket?
I wound up using a slightly modified version of this, and it does the job perfectly.
And thanks to everyone else for their advice.
Matt