fixing Java == string anomalies