Update and fix implementation of string.h.