[Issue 10295] New: To compare strings in Java