結果 : java string keep first n characters