What I'm trying to do is allow a user to input different variations of a string(by that I mean, a user could enter either "Calculator", "Calc", "calculator", etc.), and still get the same code executed so I don't have to copy it into each case I want to do the same thing. i.e.
switch(input) {
case "string1":
statement 1;
break;
case "string2":
statement 1;
break;
case "string3":
statement 2;
break;
case "string4":
statement 2;
break;
default:
break;
Is there an easy way to do this, other than writing the same statement for each case?