public int getDestination(String input) {
    if (destinations.containsKey(input)) return destinations.get(input);
    else if (isOtherPunctuation(input)) return otherPunctuationDestination;
    else if (isSpace(input)) return spaceDestination;
    else if (isNum(input)) return numDestination;
    else return defaultDestination;
  }