SQL substring question

Its working Thank you very much