結果 : javascript get substring up to character