Correct error, was not skipping empty replaces
Remove testing output