public static function stripFileExtension($string, $asArray = false)
        {
            $regexp = "|\.\w{1,5}$|";
            $new = preg_replace($regexp, "", $string);
            $suf = substr($string, strlen($new)+1);
            if ($asArray == true) {
                return array('location' => $new, 'suffix' => $suf);
            } else {
                return $new;
            }
        }