changed filename extension scanning using the new string scanners