Python Check If String Includes Array Javascript Duplicates On Iphone