Added code to handle typos in filanames