Implemented replace character table. untested first attempt.