結果 : java first and last character of string