Add most of the code for the letter replacement  strategy

but some classes are still missing