protected function compactExplodedWords($matches) { return preg_replace('/\\s+/s', '', $matches[1]) . $matches[2]; }