java compare first character of string