結果 : check if type of string javascript