trim the controller as sometimes seems to drop a slash