Use str.isupper() instead of comparison

- Changed the more elaborate check for uppercase sentences with
str.isupper()
- Removed some unnecessary parens from the code