Fix and minor cleanup in AutoNoCaps.java

Fixed: Whitespaces were counted as lowercase letters when calculating
the percentage of uppercase letters in a message.