perf tools: Ditch rtrim(), use strim() from tools/lib