tolower(x) will return a lower case version of x.
switch(x) is still going to check x.
In other words, x is not lowercase-ified...unless it was lowercase to begin with
switch(tolower(x)) will check a lowercase version of x.
You should be able to comprehend now.