Description: Class substitution for the symbols of a word. (Contributed by Alexander van der Vekens, 15-Jul-2018)