add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str

A single commit to address https://github.com/micropython/micropython/issues/634 . This commit also incorporates the suggestions by, and fixes the problems raised by, dhylands.