minor changes

adjusted formatting on an if statement
changed variable name from 'char' to 'ch'