original_string: public static function clean_page_url($name)
      {
          $name = str_replace(array(' '), '_', $name);
  
          $name = self::trim_extension_off($name);
          $name = self::trim_sort_number($name);
  
          if (preg_match('/^[\/]?index[\/]?/', $name)) {
              return '';
          }
  
          return strtolower($name);
      }
code: public static function clean_page_url($name)
      {
          $name = str_replace(array(' '), '_', $name);
  
          $name = self::trim_extension_off($name);
          $name = self::trim_sort_number($name);
  
          if (preg_match('/^[\/]?index[\/]?/', $name)) {
              return '';
          }
  
          return strtolower($name);
      }
code_tokens: public static function clean_page_url ( $ name ) { $ name = str_replace ( array ( ' ' ) , '_' , $ name ) ; $ name = self :: trim_extension_off ( $ name ) ; $ name = self :: trim_sort_number ( $ name ) ; if ( preg_match ( '/^[\/]?index[\/]?/' , $ name ) ) { return '' ; } return strtolower ( $ name ) ; }
docstring: String helper for cleaning a file name to a URL safe version.
  
  @param string $name to convert
  
  @return string $name output
docstring_tokens: String helper for cleaning a file name to a URL safe version .