Why is my script causing the app to crash?

I am kina not sure that

@CHAR left is valid command
Is it? I have never seen it before…