identifyWhitespace function

A checkFunction for identifying whitespace