Adding replace_find_same and replace_find