結果 : javascript string get substring before character