safe strcpy modification for long fileName cases + Note/ directory removed