結果 : java get first and last character of string