Python String Not In Array Javascript Duplicates On Iphone