Updated StringCheck (now also checks for whitespace-only strings).
Better error handling.