added switch on string test