use iswspace for trimX