Sql Get String From Charindex Postgresql