before filter : trim input