結果 : javascript substr alternative