Cleaned up string null check.