strscan: make it work properly