Instead of equality test, use index() or regular expressions then.
In reply to Re^3: Compare two arrays by parv in thread Compare two arrays by kaushik9918