make tokenizing and splitting more robust in icp reader - ignore leading and trailing spaces