protected static function explode($text) { $chars = array(); foreach (preg_split('//u', preg_replace('/\\s+/', '', $text)) as $char) { if ($char !== '') { $chars[] = $char; } } return $chars; }