pathname and strscan