Process input case statement