private function sanitizeActions($actionsString) {

        $actions = [];
        $actionsString = strtolower($actionsString);

        // with duplicate actions the latter ones overwrite previous ones

        foreach(explode('|', $actionsString) as $action) {

            $action = trim($action);
            $actions[strstr($action, ' ', true)] = $action;

        }

        return $actions;
    }