trim function

Deleting leading and ending white spaces