removes the final paren in the (x,y) format