Postgres Find Position Of Character In String Python