結果 : in javascript substring the correct method of string object