Use proper string comparison for portability