Removes a comment at the end of the action listener