strings in switch feature is refactored