Sql Get String From Charindex In Substring Method In Apex