OK, never do that. Parsing
ls
to get file names is very fragile and can't deal with any kind of complex name (those that have spaces, for example). I suggest you read
this. In any case, there is absolutely no reason to use
-ls -
if all you want is the name, just use
ls
alone.