[tools] testbot/LogUtils: Optimise the _GetLineKey() line cleanup.