Updated to use POSIX character classes

- Use POSIX instead Perl/Vim whitespace character class for BSD/OSX
  compatibility