Fixes an issue where the $0 check didn't actually check for spaces; but rather number of parameters.
It has been replaced with a regular expression.

The function to check if you're permitted to apply modes also checks for empty input now.