Treating bytes as cardinal numbers

Implementing a regex test instead of a string comparison