improve dictionary.m: number replacement