Improved string comparison performance