lib/string.c: simplify strnstr()