$application = trim($app[1]);
} else {
// Invalid entry found, first must be "app"!
$application = trim($app[1]);
} else {
// Invalid entry found, first must be "app"!
$application = preg_replace('/([^a-z0-9_-])+/i', '', $application);
// Set the application name for later usage
$application = preg_replace('/([^a-z0-9_-])+/i', '', $application);
// Set the application name for later usage