Work on trim function.