Handle dangling dash dash at the end