update: continued battles with "if" loop and .charAt() method