Using a switch with strings in JavaScript

My switch statement is not working properly when analysing a string variable.

The output and input are both