Substitute copied strings.
Simplify the code.