Add braces and $end to end of tokanes