perf tools: Move ltrim() to util/string.c