Enhance string comparison