hw5 implemented checking for digit ASCII codes