original_string: public static function cleanFileName($str)
      {
          preg_match('~\.\w{1,4}$~', $str, $ext);
  
          $str = preg_replace('~\.\w{1,4}$~', '', $str);
  
          return str_replace(Array(' ', '.', '-'), "_", $str).$ext[0];
      }
code: public static function cleanFileName($str)
      {
          preg_match('~\.\w{1,4}$~', $str, $ext);
  
          $str = preg_replace('~\.\w{1,4}$~', '', $str);
  
          return str_replace(Array(' ', '.', '-'), "_", $str).$ext[0];
      }
code_tokens: public static function cleanFileName ( $ str ) { preg_match ( '~\.\w{1,4}$~' , $ str , $ ext ) ; $ str = preg_replace ( '~\.\w{1,4}$~' , '' , $ str ) ; return str_replace ( Array ( ' ' , '.' , '-' ) , "_" , $ str ) . $ ext [ 0 ] ; }
docstring: Cleans up file names and removes extraneous spaces, symbols, etc
  
  @author paul.visco@roswellpark.org
  @param string $str
  @return string
docstring_tokens: Cleans up file names and removes extraneous spaces symbols etc