changed if statements

Updated statements to use ascii version rather than hex code for
evaluation