Change to

```
(selectionEntry.isFile) ? Strings.INVALID_FILENAME_TITLE : Strings.INVALID_DIRECTORYNAME_TITLE
```