public class Chemical
{
    public Chemical (String name)
    {
        _name = name;
    }

    public final String getName ()
    {
        return _name;
    }

    @Override
    public String toString ()
    {
        return _name;
    }

    @Override
    public boolean equals (Object obj)
    {
        if (obj == null)
            return false;

        if (obj instanceof Chemical)
        {
            Chemical temp = (Chemical) obj;

            return (temp._name.equals(_name));
        }

        return false;
    }

    private String _name;
}
@@ -73,24 +73,31 @@
 _name = name
+.trim()
 ;%0A    %7D%0A%0A   

Update Chemical.java