stripped down version of string.c containing only the used functions