a few tweaks for speed
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index b0a39c5..50b4d82 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -521,8 +521,7 @@
 		 * between ascii characters, like Java\0script.

 		 *

 		 */

-		$str = preg_replace('/\0+/', '', $str);

-		$str = preg_replace('/(\\\\0)+/', '', $str);

+		$str = preg_replace(array('/\0+/', '/(\\\\0)+/'), '', $str);

 

 		/*

 		 * Protect GET variables in URLs

@@ -646,7 +645,9 @@
 		foreach ($words as $word)

 		{

 			$temp = '';

-			for ($i = 0; $i < strlen($word); $i++)

+			$wordlen = strlen($word);

+			

+			for ($i = 0; $i < $wordlen; $i++)

 			{

 				$temp .= substr($word, $i, 1)."\s*";

 			}