Modified. Erased to include character indexing function from ThinkPython. Very interesting logic flow here