Use a switch statement instead of nested ifs
Export InvalidCharacterError fields