minor revision
fixed bug in str2rng