Fixed typo in whiteSpaceCheck