Js Array Contains String Python Replace