try {
        modifier = rttc.validate('string', modifier);
      } catch (e) {
        switch (e.code) {