fixed input bug when --notrimming is used