Fixed the console bug in clips.php and added clips_str_match function.