Js Check If Array Contains String Python Replace All Occurrences