Postgres Replace String In C