mb_substr_count instead preg_match, some spacing in docblock