string: Improve strchr performance

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