feat(ee-lib): improve string comparison to increase string matching effeciency