improve dictionary.m: improve alphabet replacement