replace xx with x