A need a copy to limit search range. I can do some tests and find some size for which full search is faster than string copy, add code that use either copy of string or reference to original string, but I don't thinks you'll accept that code. ;)