Check for empty string/whitespace
Fixed lints.