Question: what is the difference between space and whitespace?
Answer: In the added context to your question, a space is ascii 32 (that is, what you get when you press the spacebar). A whitespace is any character that renders as a space, that is: ... A new line character. A vertical tab character.