結果 : check if string contains same character javascript