Postgres Check If String Contains Python String To Number