remove a trailing semicolon