remove trailing ; for \copy