Postgresql String Replace C