Add a Trim function globally