Update bob tests to handle input ending in whitespace

While nit-picking, I noticed a lot of users were failing to acknowledge the case where valid input ends with whitespace. Stripping at the wrong time would result in bob responding to a valid question (for example) with "Whatever."

This PR adds a test for this scenario. The ```example.py``` file was also incorrectly handling this type of input, so I have corrected that file as well.

As a small note, the first commit in this PR fixes a minor formatting mistake (whitespace trailing a function).