Avoid extra function call on hot path
Avoid unnecessary memory allocation/deallocations and pcre calls