Handle Java string comaparison properly 2