AlphabetHelper reword

Fix Helper class. Replace ugly ifelse with hashtable.