Replace last ; with empty string