> case '1'
Try
case 1

Plus a couple of other syntax errors, which I assume because you typed the code rather than copy/pasted.