Added some comments to replaceecodes