Fix comparing strings as integers.
Fix using string comparison for integers.
Use '=' instead of '==' for strings, for better POSIX compliance.