bugfix in isBlank() function