validation for replace
updated README