Make sure we use the correct trim function.