fixing bug 747: strip instead of trim