F51: Extend stringExtAPI with trim function.