hw5 implemented checking for regular, extended, and non ASCII codes.