The "==" hurts my eyes;-) If you change it into "eq" it will work my son.
In reply to Re^2: Check last character of a string by dHarry in thread Check last character of a string by theroninwins