Fix for previous bad code in ed82ab2309

scanUpToString  != scanString