trim space in session file