結果 : substring in java without substring method