Postgres Replace In String Js