Java Input String Compare Js