Minor edits.

Fixed typo.
Removed unnecessary white space.
Defaults to empty string if permission is not defined instead of
throwing error.