Add isOnlyWhitespace fn & test