OK here is the code codepad here http://codepad.org/ZQz0Kn3R
function processContent($content, $min_count = 2, $exclude_list = array()) { $wordsTmp = ex
http://codepad.viper-7.com/BrZ9Rm
you will need to pass it through trim:
$filter_array = array_map(function($el) { return trim($el); }, $filter_array);