update case substitution in router