No need for REGEX.match before switch statement, just add default