Sql Get String From Charindex Postgresql Commands