isOnlyWhitespace implemented