Implemen TM merge and searchreplace to handle validation error