Minor syntax edits for string comparison. Use operator== if available.