Use the latest implementation of isupper()

- Fixed str.isupper() to use the newer implementation
[sentence.isupper()]
- removed unnecessary else's in the code; all branches return so they
are not needed