結果 : string substring is not a function js