Update Route matches

Reduced code. Fixed uppercase for params (controller, category).
code for #571
~~~
if (!empty($params['namespace'])) {
	if (strpos('\\', $params['namespace']) !== false) {
		$params['namespace'] = str_replace(' ', '\\', ucwords(str_replace('\\', ' ', $params['namespace'])));
	} else {
		$params['namespace'] = ucfirst($params['namespace']);
	}
}
~~~