[DoctrineBridge] replaced mb_string function with a regex