remove extra file from the list
compare only prefix, skip trailing messages