Change from string reference comparison to equals() for clarity.