string: Improve strchrnul performance

Improve strchrnul performance by using a more efficient termination test.
On various micro architectures the speedup is 21% on large strings.
1 file changed