test equality instead of substring