Finished codes_repalce/4