Strings in switch and closures