Adding whitelist support

Note: This pull request only checks the first argument of the command.
It can be further extended to support substrings.