Check if the input is ONLY words or ONLY numbers

This function returns true if the input is ONLY words or ONLY numbers, any combination of the two is ignored.  Whitespace is removed.