Postgres Check If String Contains Python String Split