Rewrite Results Trim was causing errors in IE8.

Signed-off-by: Joe Whitsitt <joe-whitsitt@uiowa.edu>