Sql Get String From Charindex In Postgresql