Return default value out of switch statement