[PATCH 29/64] lib/string: Move helper functions out of string.c