Updated code to test each char

stuck on line 303 atm