Code for chapter 48
Updated code for chapter 48 - added handling of upper/lowercase